import Home from "./components/Home.vue";
import Cart from "./components/Cart.vue";
import Shop from "./components/Shop.vue";
export default {
  install: function (Vue) {
    Vue.component("Home", Home);
    Vue.component("Cart", Cart);
    Vue.component("Shop", Shop);

    Vue.filter("formatGender", function (value) {
      const obj = { 1: "男", 2: "女" };
      return obj[value];
    });

    Vue.filter("join", function (value, str, a, b) {
      return value + str;
    });
  },
};
